package com.bci.pwtz.mysql.dao;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.VerifyCode;

public interface VerifyCodeMapper {
    int deleteByPrimaryKey(Long codeId);

    int insert(VerifyCode record);

    int insertSelective(VerifyCode record);

    VerifyCode selectByPrimaryKey(Long codeId);

    int updateByPrimaryKeySelective(VerifyCode record);

    int updateByPrimaryKey(VerifyCode record);
    
    VerifyCode selectByMobile(String mobile);
    
    int deleteByMobile(String mobile);
    
    int validateCode(@Param("mobile")String mobile,@Param("code")String code,@Param("minute")int minute);
}